<?php
namespace Admin\Controller;

class IndexController extends CommenController {
    public function index(){
        $user= M("user");
            $userCount = $user->count();
            $this->assign("userCount",$userCount);

            $text= M("text");
            $textCount = $text->count();
            $this->assign("textCount",$textCount);

            $userinfo = M("liuyan");
            $usermessageCount = $userinfo->count();
            $this->assign("usermessageCount",$usermessageCount);
            
            $userinfo= M("usercomment");
            $usercommentCount = $userinfo->count();
            $this->assign("usercommentCount",$usercommentCount);
            
            $getVersion = file_get_contents("http://www.lcm.wang/index.php/Home/Index/getVersion");
            $version = json_decode($getVersion,true);
            $this->assign("version",$version);
            
    	$this->display();
    }
}